[id].vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `zhaopin/${item.id}.html` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  38. </li>
  39. </ul>
  40. <!-- 分页器 -->
  41. <!-- <div class="pagination">
  42. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  43. prev-text="上一页" next-text="下一页" @change="changePage" />
  44. </div> -->
  45. </div>
  46. <div class="innerRight">
  47. <div class="rightMenuTitle">导航列表</div>
  48. <ul>
  49. <li v-for="(item, index) in bottomMenu" :key="index">
  50. <NuxtLink :to="`/about/${item.name_pinyin}/`" :title="item.name"
  51. v-if="item.id == pageId && item.id != 7" class="active">
  52. {{ item.name }}
  53. </NuxtLink>
  54. <NuxtLink :to="`/about/${item.name_pinyin}/`" :title="item.name"
  55. v-else-if="item.id != pageId && item.id != 7">
  56. {{ item.name }}
  57. </NuxtLink>
  58. <NuxtLink :to="`/about/${item.name_pinyin}/1.html`" :title="item.name"
  59. v-if="item.id == 7 && pageId == 7" class="active">
  60. {{item.name }}
  61. </NuxtLink>
  62. <NuxtLink :to="`/about/${item.name_pinyin}/1.html`" :title="item.name" v-else-if="item.id == 7">
  63. {{ item.name}}
  64. </NuxtLink>
  65. </li>
  66. </ul>
  67. </div>
  68. <div style="clear: both;"></div>
  69. </div>
  70. </div>
  71. <!-- 列表页广告二 -->
  72. <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
  73. <!-- 页面底部 -->
  74. <HomeFoot1></HomeFoot1>
  75. </div>
  76. </template>
  77. <script setup>
  78. //1.页面依赖 start ---------------------------------------->
  79. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  80. import { ArrowRight } from '@element-plus/icons-vue'
  81. import { ref, onMounted } from 'vue';
  82. //获得跳转过来的id
  83. const route = useRoute();
  84. //获得当前的完整路径
  85. const fullPath = route.path;
  86. //拆分,取出来中间这一段,然后提取数字部分
  87. const segments = fullPath.split('/');
  88. const targetSegment = segments[2];
  89. const numberPart = targetSegment.match(/\d+$/)?.[0];
  90. //路由id
  91. //let routeId = 11 //排除路径错误可以打开这个
  92. const pageId = numberPart;//左侧菜单选中哪个
  93. //1.页面依赖 end ---------------------------------------->
  94. //2.页面数据 start ---------------------------------------->
  95. //广告
  96. let adImg1 = ref([]);
  97. let adImg2 = ref([]);
  98. // async function getAdData(){
  99. // const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  100. // if(adData.code==200){
  101. // for(let item of adData.data){
  102. // if(item.ad_tag == 'PAGE_0001'){
  103. // adImg1.value = item;
  104. // }
  105. // if(item.ad_tag == 'PAGE_0002'){
  106. // adImg2.value = item;
  107. // }
  108. // }
  109. // }else{
  110. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  111. // console.log("错误位置:获取详情页广告列表")
  112. // console.log("后端错误反馈:",adData.message)
  113. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  114. // }
  115. // }
  116. // getAdData();
  117. onMounted(async () => {
  118. //从客户端获取行政职能部门 加快打开速度
  119. const { $webUrl, $CwebUrl } = useNuxtApp();
  120. //广告1
  121. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
  122. const responseAd1 = await fetch(url, {
  123. headers: {
  124. 'Content-Type': 'application/json',
  125. 'Userurl': $CwebUrl,
  126. 'Origin': $CwebUrl
  127. }
  128. });
  129. const resultAd1 = await responseAd1.json();
  130. adImg1.value = resultAd1.data[0];
  131. //广告2
  132. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
  133. const responseAd2 = await fetch(url2, {
  134. headers: {
  135. 'Content-Type': 'application/json',
  136. 'Userurl': $CwebUrl,
  137. 'Origin': $CwebUrl
  138. }
  139. });
  140. const resultAd2 = await responseAd2.json();
  141. adImg2.value = resultAd2.data[0];
  142. })
  143. //左侧导航
  144. const bottomMenu = ref([]);
  145. async function getPageMenu() {
  146. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  147. method: 'GET',
  148. query: {},
  149. });
  150. bottomMenu.value = mkdata.data;
  151. }
  152. getPageMenu();
  153. //列表
  154. const newsList = ref([]);
  155. let newslists = async () => {
  156. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  157. method: 'GET',
  158. query: {
  159. 'fcat_id':pageId,
  160. },
  161. });
  162. newsList.value = listData.data;
  163. }
  164. //获得列表
  165. newslists();
  166. //分页
  167. let changePage = (value) => {
  168. console.log("当前页码", value);
  169. page.value = value
  170. console.log(page.value);
  171. newslists()
  172. }
  173. //2.页面数据 end ---------------------------------------->
  174. //3 设置seo信息
  175. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  176. method: 'GET',
  177. query: {},
  178. });
  179. let seoTitle = setData.data.website_head.title;
  180. let seoDescription = setData.data.website_head.description;
  181. let seoKeywords = setData.data.website_head.keywords;
  182. let seoSuffix = setData.data.website_head.suffix;
  183. let seoName = setData.data.website_head.website_name;
  184. useSeoMeta({
  185. title: seoTitle + "_" + seoSuffix,
  186. meta: [
  187. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  188. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  189. ]
  190. });
  191. //3.设置seo信息 end---------------------------------------->
  192. </script>
  193. <style lang="less" scoped>
  194. //导航条
  195. .breadcrumb {
  196. width: 100%;
  197. height: 22px;
  198. margin-bottom: 30px;
  199. font-family: Microsoft YaHei, Microsoft YaHei;
  200. font-weight: 400;
  201. font-size: 20px;
  202. color: #666666;
  203. line-height: 23px;
  204. text-align: left;
  205. font-style: normal;
  206. text-transform: none;
  207. :deep(.el-breadcrumb) {
  208. display: inline-block;
  209. vertical-align: -4px;
  210. }
  211. :deep(.el-breadcrumb__inner a),
  212. :deep(.el-breadcrumb__inner.is-link) {
  213. color: #666666;
  214. font-weight: 400;
  215. text-decoration: none;
  216. transition: var(--el-transition-color);
  217. }
  218. span {
  219. font-family: Microsoft YaHei, Microsoft YaHei;
  220. font-weight: 400;
  221. font-size: 20px;
  222. color: #666666;
  223. line-height: 23px;
  224. text-align: left;
  225. font-style: normal;
  226. text-transform: none;
  227. }
  228. span:hover {
  229. color: #666666;
  230. }
  231. .location {
  232. margin-right: 20px;
  233. width: 100px;
  234. height: 22px;
  235. font-family: Microsoft YaHei, Microsoft YaHei;
  236. font-weight: 400;
  237. font-size: 20px;
  238. color: #666666;
  239. line-height: 23px;
  240. text-align: left;
  241. font-style: normal;
  242. text-transform: none;
  243. }
  244. }
  245. // 资讯列表
  246. .newsList {
  247. width: 100%;
  248. margin-bottom: 70px;
  249. .inner {
  250. width: 1200px;
  251. height: 1300px;
  252. .innerLeft {
  253. height: 65px;
  254. line-height: 65px;
  255. font-size: 22px;
  256. color: #028E21;
  257. font-weight: bold;
  258. }
  259. .innerTitle {
  260. font-size: 24px;
  261. }
  262. .innerLeft {
  263. float: right;
  264. >.list {
  265. height: 570px;
  266. margin-bottom: 70px;
  267. border-top: 1px solid #139602;
  268. >li {
  269. width: 790px;
  270. height: 60px;
  271. white-space: nowrap;
  272. overflow: hidden;
  273. text-overflow: ellipsis;
  274. line-height: 60px;
  275. //border-bottom: 1px solid #D9D9D9;
  276. >a {
  277. width: 360px;
  278. height: 26px;
  279. cursor: pointer;
  280. font-family: Microsoft YaHei, Microsoft YaHei;
  281. font-weight: 400;
  282. font-size: 20px;
  283. color: #333333;
  284. line-height: 26px;
  285. text-align: left;
  286. font-style: normal;
  287. text-transform: none;
  288. }
  289. }
  290. >li:hover>a {
  291. color: #139602;
  292. }
  293. >li:nth-child(1)::after,
  294. >li:nth-child(2)::after {
  295. content: "热";
  296. margin-left: 13px;
  297. background: #FF8A37;
  298. color: #fff;
  299. font-size: 14px;
  300. padding: 0px 2px;
  301. }
  302. >li:nth-child(5n) {
  303. border-bottom: 1px solid #D9D9D9;
  304. }
  305. }
  306. >.pagination {
  307. width: 800px;
  308. height: 34px;
  309. margin-left: 141px;
  310. display: flex;
  311. justify-content: center;
  312. margin: 0;
  313. // 鼠标移入后字体颜色
  314. .el-pagination::v-deep :hover {
  315. color: #139609;
  316. }
  317. .el-pagination.is-background::v-deep .btn-next,
  318. .el-pagination.is-background::v-deep .btn-prev {
  319. width: 70px;
  320. height: 34px;
  321. margin: 0px 10px;
  322. border-radius: 4px;
  323. }
  324. .el-pagination.is-background::v-deep .el-pager li {
  325. margin: 0px 10px;
  326. width: 38px;
  327. height: 34px;
  328. border-radius: 4px;
  329. }
  330. .el-pagination.is-background::v-deep .btn-next.is-active,
  331. .el-pagination.is-background::v-deep .btn-prev.is-active,
  332. .el-pagination.is-background::v-deep .el-pager li.is-active {
  333. background-color: #028e21;
  334. color: #fff;
  335. }
  336. }
  337. }
  338. .innerRight {
  339. width: 279px;
  340. .rightMenuTitle {
  341. width: 279px;
  342. height: 69px;
  343. font-size: 22px;
  344. font-weight: bold;
  345. line-height: 58px;
  346. text-align: center;
  347. color: #fff;
  348. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreTitle.png") no-repeat;
  349. margin-bottom: 30px;
  350. }
  351. ul {
  352. li {
  353. a {
  354. border-left: 5px solid #028E21;
  355. margin-bottom: 15px;
  356. font-size: 22px;
  357. display: block;
  358. height: 61px;
  359. line-height: 61px;
  360. color: #333333;
  361. text-align: center;
  362. background: #FBFBFB;
  363. }
  364. }
  365. }
  366. .active {
  367. border-left: 0;
  368. border: 1px solid #028E21;
  369. background: #fff;
  370. }
  371. }
  372. }
  373. }
  374. //资讯推荐
  375. .zixuntuijian {
  376. width: 100%;
  377. height: 290px;
  378. margin-bottom: 70px;
  379. .innerLeft {
  380. // 左侧
  381. .zixunLeft {
  382. margin-right: 30px;
  383. }
  384. .zixunRight,
  385. .zixunLeft {
  386. float: left;
  387. width: 380px;
  388. height: 290px;
  389. // 标题部分
  390. >.title {
  391. width: 380px;
  392. }
  393. >.title>h3 {
  394. height: 36px;
  395. font-family: Source Han Sans, Source Han Sans;
  396. font-weight: bold;
  397. font-size: 24px;
  398. color: #000000;
  399. line-height: 28px;
  400. text-align: left;
  401. font-style: normal;
  402. text-transform: none;
  403. border-bottom: 1px solid #139602;
  404. }
  405. >.title>h3>span {
  406. float: right;
  407. width: 56px;
  408. height: 20px;
  409. line-height: 24px;
  410. font-weight: 400;
  411. font-size: 14px;
  412. color: #999999;
  413. font-style: normal;
  414. text-transform: none;
  415. }
  416. .photo_text {
  417. >li:first-child {
  418. width: 380px;
  419. height: 120px;
  420. margin-top: 20px;
  421. margin-bottom: 15px;
  422. position: relative;
  423. >img {
  424. float: left;
  425. width: 160px;
  426. height: 120px;
  427. }
  428. >div {
  429. float: left;
  430. width: 220px;
  431. height: 120px;
  432. padding-left: 15px;
  433. padding-top: 6px;
  434. box-sizing: border-box;
  435. background-color: #f6f6f6;
  436. >h5 {
  437. width: 200px;
  438. height: 54px;
  439. display: -webkit-box;
  440. -webkit-box-orient: vertical;
  441. -webkit-line-clamp: 2;
  442. overflow: hidden;
  443. text-overflow: ellipsis;
  444. word-break: break-all;
  445. font-family: Source Han Sans, Source Han Sans;
  446. font-weight: 500;
  447. font-size: 18px;
  448. color: #333333;
  449. line-height: 26px;
  450. text-align: left;
  451. font-style: normal;
  452. text-transform: none;
  453. }
  454. >p {
  455. width: 200px;
  456. height: 22px;
  457. line-height: 20px;
  458. position: absolute;
  459. bottom: 5px;
  460. right: 0;
  461. >span {
  462. display: inline-block;
  463. // width: 100px;
  464. height: 18px;
  465. font-family: Source Han Sans, Source Han Sans;
  466. font-weight: 400;
  467. font-size: 12px;
  468. color: #999999;
  469. text-align: left;
  470. line-height: 14px;
  471. font-style: normal;
  472. text-transform: none;
  473. }
  474. >span:last-child {
  475. // width: 90px;
  476. text-align: right;
  477. margin-left: 20px;
  478. }
  479. }
  480. }
  481. }
  482. >li {
  483. width: 380px;
  484. height: 25px;
  485. white-space: nowrap;
  486. overflow: hidden;
  487. text-overflow: ellipsis;
  488. font-family: PingFang SC, PingFang SC;
  489. font-weight: 500;
  490. font-size: 18px;
  491. color: #333333;
  492. line-height: 21px;
  493. text-align: left;
  494. font-style: normal;
  495. text-transform: none;
  496. margin-bottom: 10px;
  497. em {
  498. display: inline-block;
  499. width: 8px;
  500. height: 8px;
  501. border-radius: 8px;
  502. margin-right: 10px;
  503. background-color: #d9d9d9;
  504. }
  505. }
  506. >li:hover {
  507. color: #139602;
  508. }
  509. >li:hover em {
  510. background-color: #139602;
  511. }
  512. }
  513. }
  514. }
  515. .innerRight {
  516. width: 381px;
  517. height: 290px;
  518. background-color: #fbfbfb;
  519. >.title {
  520. width: 380px;
  521. height: 40px;
  522. line-height: 40px;
  523. border-top: 1px solid #139602;
  524. border-bottom: 1px solid #e7e7e7;
  525. >h4 {
  526. font-family: Microsoft YaHei, Microsoft YaHei;
  527. font-weight: 400;
  528. margin-left: 20px;
  529. font-size: 20px;
  530. color: #000000;
  531. text-align: left;
  532. font-style: normal;
  533. text-transform: none;
  534. >span {
  535. float: right;
  536. font-family: Microsoft YaHei, Microsoft YaHei;
  537. font-weight: 400;
  538. font-size: 14px;
  539. margin-right: 10px;
  540. color: #999999;
  541. text-align: left;
  542. font-style: normal;
  543. text-transform: none;
  544. }
  545. }
  546. }
  547. .rightList {
  548. height: 540px;
  549. margin-top: 20px;
  550. >li {
  551. height: 100px;
  552. margin-bottom: 10px;
  553. >img {
  554. width: 150px;
  555. height: 100px;
  556. }
  557. >p {
  558. width: 219px;
  559. height: 100px;
  560. padding-left: 12px;
  561. font-family: PingFang SC, PingFang SC;
  562. font-weight: 400;
  563. font-size: 16px;
  564. color: #333333;
  565. line-height: 22px;
  566. text-align: left;
  567. font-style: normal;
  568. text-transform: none;
  569. }
  570. >p:hover {
  571. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  572. }
  573. }
  574. }
  575. }
  576. }
  577. .projectMoreBox {
  578. margin: 0 auto;
  579. height: 540px;
  580. margin-top: 20px;
  581. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreBg.png") no-repeat;
  582. margin-bottom: 40px;
  583. .projectMoreTitle {
  584. color: #028E21;
  585. padding-top: 20px;
  586. font-size: 26px;
  587. padding-left: 204px;
  588. }
  589. .projectMoreText {
  590. padding: 40px;
  591. font-size: 20px;
  592. color: #333333;
  593. text-indent: 2em;
  594. line-height: 36px;
  595. }
  596. }
  597. </style>